@extends('admin.base')

@section('title') 查看文章 @endsection

@section('caption')
    查看文章
@endsection

@section('content')
    <table class="table datatable-save-state">
        <tr>
            <th>id</th>
            <th>标题</th>
            <th>作者</th>
            <th>封面</th>
            <th>状态</th>
            <th>阅读量</th>
            <th>类型</th>
            {{--            <th>主要内容</th>--}}
            <th>创建时间你</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>
        @foreach($articles as $article)
            <tr>
                <td>{{$article->id}}</td>
                <td>{{$article->title}}</td>
                <td>{{$article->author}}</td>
                <td><img src="/{{$article->cover}}" style="width: 40px;height: 40px"></td>
                <td>{{$article->state}}</td>
                <td>{{$article->seen}}</td>
                <td>{{$article->type}}</td>
                <td>{{$article->created_at}}</td>
                <td>{{$article->updated_at}}</td>
                <td class="text-center">
                    <ul class="icons-list">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-menu9"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li><a href="updatearticle?id={{$article->id}}"><i class="icon-eye  text-brown-800"></i>查看详情</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </td>
            </tr>
        @endforeach
    </table>
@endsection
